package model

import (
	"gorm.io/gorm"
)

type User struct {
	gorm.Model
	Username string `json:"username" gorm:"type:varchar(30);comment:'用户名'"`
	Password string `json:"password" gorm:"type:varchar(32);comment:'密码'"`
	Email    string `json:"email" gorm:"type:varchar(50);comment:'邮箱'"`
}

func (u *User) TableName() string {
	return "user"
}
